//==============================================================================
//
//==Vorpal Blade (Based off the Shield/Axe from Schism)
//==Modified by LordADHD
//
//==============================================================================


ACTOR VorpalBlade : BrutalWeapon
{
	Game Doom
	+BLOODSPLATTER
	//Health 3
	Weapon.SelectionOrder 3500
	Weapon.KickBack 20
	//+WEAPON.WIMPY_WEAPON
	+WEAPON.MELEEWEAPON
	+WEAPON.NOAUTOAIM
	+WEAPON.NOALERT
	+INVENTORY.UNDROPPABLE
	+WEAPON.CHEATNOTWEAPON
	//+WEAPON.NOAUTOFIRE
	Weapon.AmmoUse1 0
	Weapon.AmmoUse2 0
	Weapon.AmmoGive1 0
	Weapon.AmmoGive2 0
	//Weapon.KickBack 150
	Weapon.AmmoType1 "Zeal"
	Weapon.AmmoType2 "Rage"
	Weapon.SlotNumber 6
	Inventory.ForbiddenTo BDoomer, Sorcerer, Corvus

	
	Obituary "$OB_MPFWEAPFIST"
	Tag "$TAG_FWEAPFIST"
	States
	{
	Select:
		TNT1 A 0
		TNT1 A 0 A_GiveInventory("GoSpecial", 1)
		TNT1 A 0 SetPlayerProperty(0,0,0)
		SWRD A 0 A_Raise
		Wait //Goto Super::Select
		
	Deselect:
		SWRD O 1
		"####" A 0 A_SetCrosshair(0)
        "####" A 0 A_ZoomFactor(1.0)
		//"####" AAAAAAAAAA 0 A_Lower
		"####" QP 1
		"####" A 1
		SWRD A 0 A_Lower
		Wait
		
	Ready:
		SWRD O 0 A_WeaponReady
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
	    "####" A 0 A_TakeInventory("SpecialAttackAxe", 1)
		"####" A 0 A_TakeInventory("SpecialAttackPunch", 1)
		"####" A 0 A_TakeInventory("PunchCombo", 1)
		"####" A 0 A_TakeInventory("AxeIsCharged", 1)
		"####" A 0 SetPlayerProperty(0,0,0)
		SWRD PQ 1
		SWRD A 1
		
		ReadyLoop:
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		//"####" A 0 A_JumpIfInventory("Reloading", 1, "Reload")
		
		"####" A 0 A_TakeInventory("rage",1)
        "####" A 0 A_JumpIfInventory("rage",1,2)
		"####" A 0 A_Jump(256,2)
		"####" A 0 A_GiveInventory("zeal",1)
		
		SWRD AA 2 A_WeaponReady
		
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		//"####" A 0 A_JumpIfInventory("Reloading", 1, "Reload")
		
		"####" A 0 A_JumpIfInventory("rage",0,2)
		"####" A 0 A_TakeInventory("rage",1)
		
		SWRD AA 2 A_WeaponReady
		
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		//"####" A 0 A_JumpIfInventory("Reloading", 1, "Reload")
		
		"####" A 0 A_TakeInventory("rage",1)
        "####" A 0 A_JumpIfInventory("rage",1,2)
		"####" A 0 A_Jump(256,2)
		"####" A 0 A_GiveInventory("zeal",1)
		
		SWRD AA 2 A_WeaponReady
		
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		//"####" A 0 A_JumpIfInventory("Reloading", 1, "Reload")
		
		"####" A 0 A_JumpIfInventory("rage",0,2)
		"####" A 0 A_TakeInventory("rage",1)
		
		SWRD AAA 2 A_WeaponReady
		
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		//"####" A 0 A_JumpIfInventory("Reloading", 1, "Reload")
		
		"####" A 0 A_TakeInventory("rage",1)
        "####" A 0 A_JumpIfInventory("rage",1,2)
		"####" A 0 A_Jump(256,2)
		"####" A 0 A_GiveInventory("zeal",1)
		
		SWRD AA 2 A_WeaponReady
        
		"####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
		//"####" A 0 A_JumpIfInventory("Reloading", 1, "Reload")
		
		"####" A 0 A_JumpIfInventory("rage",0,2)
		"####" A 0 A_TakeInventory("rage",1)
		
		SWRD AA 2 A_WeaponReady
		
		Loop
	
	TossGrenade:
		"####" A 0 A_TakeInventory("TossGrenade", 1)
		"####" A 0 A_JumpIfInventory("GrenadeAmmo", 1, 1)
		Goto NoGrenade
		"####" A 0 A_Print("Can't throw grenades while dual wielding.")
		Goto ReadyLoop
	NoGrenade:
		"####" A 0 A_TakeInventory("TossGrenade", 1)
		"####" A 0 A_Print("No Grenades Left.")
		Goto ReadyLoop
		
	Fire:
	    "####" A 0
		"####" A 0 A_JumpIfInventory("ReadyToQuickSlashBlade", 1, "FastSlash")
		"####" A 0 A_JumpIfInventory("IsCrouching", 1, "FastSlash")
	    //"####" A 0 A_JumpIfInventory("SpecialAttackPunch", 1, "NormPunch")
		//"####" A 0 A_JumpIfInventory("SpecialAttackPunch", 1, "QuickFire")
	    "####" A 0 A_JumpIfInventory("SpecialAttackBlade", 1, "SpecialAttack")
		//VPBR BA 2 //placeholder stuff
		
		//Boomerang Slash Charge Sprites
		TNT1 A 0 A_JumpIfInventory("BladeIsCharged", 1, 5)
		VPBR BA 2 A_SetAngle((-2)+angle)
		"####" A 0 A_Jump(256, 3)
		VPBR BA 2 //A_SetAngle((-2)+angle)	//Razor Slash Charge Sprites (no "SetAngle", this will mess up aiming a bit!)
		////////////////////////////
	Hold:
	    "####" A 0
	    SWRD B 1
		//TNT1 A 0 A_JumpIfInventory("Taunting",1,"AxeThrow") //HAHAHA! (nope :P)
		//TNT1 A 0 A_JumpIfInventory("FiredSecondary", 1, "AxeThrowReady") //Real HAHAHA!!!
		SWRD B 1 A_Refire
	
	QuickFire:
		
		//check zeal first (if below now, take away Axe charge)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////////////////////////////////////
		
		//Check Axe Charge before using up zeal
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 4)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 A_TakeInventory("Zeal", 5)
		///////////////////////////////////////
		
		//Check Rage first to determine tic skip
		"####" A 0 A_JumpIfInventory("BladeIsCharged",1, 4)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPBR A 1								//Idle state to slowdown if no rage
		"####" A 0 A_Jump(256, 3)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPPR A 1								//Idle state to slowdown if no rage (Axe Charge Sprites)
		////////////////////////////////////////
		
		//Check Axe Charge to display proper sprite
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3)
		VPBR B 1
		"####" A 0 A_Jump(256, 2)
		VPPR B 1
		///////////////////////////////////////////
		
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
		"####" A 0 A_PlaySound("AXSWING")
		"####" A 0 A_Takeinventory("ReadyToQuickSlashBlade",1)
		
		//Check if Charged too to make Boomerang
		////////////////////
		//NOW... For this pitch/angle/recoil/frozen stuff... I added these new jumps
		//to get rid of the miserable pitch/angle/recoil/frozen nonsense while "Charged"
		"####" C 1
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3) //First "Testing" Jump
		"####" A 0 SetPlayerProperty(0,1,0)
		"####" A 0 A_Recoil(-6)
		"####" A 0 A_FireCustomMissile("BladeSwing", -30, 0, 0, 18)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 //Boomerang Here
		//////////////////
		
		
		"####" A 0 A_GiveInventory("SpecialAttackBlade", 1)
		"####" D 2
		"####" A 0 A_FireCustomMissile("BladeSwing", -10, 0, 0, 12)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Second "Testing" Jump
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetAngle((1) + angle)
		"####" E 2
		"####" A 0 A_FireCustomMissile("BladeSwing", 10, 0, 0, 3)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Third "Testing" Jump
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetAngle((1) + angle)
		"####" F 2
		"####" A 0 A_FireCustomMissile("BladeSwing", 30, 0, 0, -3)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Fourth "Testing" Jump
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetAngle((1) + angle)
		"####" A 0 SetPlayerProperty(0,0,0)
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickRight")
		SWRD OPQA 2 A_WeaponReady
		"####" A 0 A_TakeInventory("SpecialAttackBlade", 1)
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickRight")
		//Take Away Charged Axe
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////
		Goto ReadyLoop
	
	SpecialAttack:
	    
		//check zeal first (if below now, take away Axe charge)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////////////////////////////////////
		
		//Check Axe Charge before using up zeal
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 4)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 A_TakeInventory("Zeal", 5)
		///////////////////////////////////////
		
		//Check Rage first to determine tic skip
		"####" A 0 A_JumpIfInventory("BladeIsCharged",1, 4)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPBL A 1								//Idle state to slowdown if no rage
		"####" A 0 A_Jump(256, 3)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPPL A 1 BRIGHT								//Idle state to slowdown if no rage (Axe Charge Sprites)
		////////////////////////////////////////
		
		"####" A 0
		
		//check Axe Charge to display proper Sprites
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3)
		VPBL B 1
		"####" A 0 A_Jump(256, 2)
		VPPL B 1 BRIGHT
		////////////////////////////////////////////
		
        "####" A 0 A_PlaySound("Paladin/SpellCast", 2)
		"####" A 0 A_PlaySound("AXSWING")
		//"####" C 1
		"####" A 0 A_TakeInventory("SpecialAttackBlade", 1)
		
		//Check if Charged too to make Boomerang
		////////////////////
		//AGAIN... For this pitch/angle/recoil/frozen stuff... I added these new jumps
		//to get rid of the miserable pitch/angle/recoil/frozen nonsense while "Charged"
		"####" C 1
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3) //First "Testing" Jump
		"####" A 0 SetPlayerProperty(0,1,0)
		"####" A 0 A_Recoil(-6)
		"####" A 0 A_FireCustomMissile("BladeSwing", 30, 0, 0, 18)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 //Boomerang Here
		//////////////////
		
		"####" D 2
		"####" A 0 A_FireCustomMissile("BladeSwing", 10, 0, 0, 12)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Second "Testing" Jump
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetAngle((-1.5) + angle)
		"####" E 2
		"####" A 0 A_FireCustomMissile("BladeSwing", -10, 0, 0, 3)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Third "Testing" Jump
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetAngle((-1.5) + angle)
		"####" F 2
		"####" A 0 A_FireCustomMissile("BladeSwing", -30, 0, 0, -3)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Fourth "Testing" Jump
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetAngle((-1.5) + angle)
		"####" A 0 SetPlayerProperty(0,0,0)
		
		"####" F 1 A_Refire("FastSlash") //A_WeaponReady
		
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickLeft")
		SWRD OPQA 2 A_Refire("FastSlash") //A_WeaponReady
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickLeft")
		//Take Away Charged Axe
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////
		Goto ReadyLoop
		
		////////////////////////////////////////////////
		//TWO FAST HORIZONTAL SLASHES FOR RAGED ATTACK//
		////////////////////////////////////////////////
		
	FastSlash:
		
		//check zeal first (if below now, take away Axe charge)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////////////////////////////////////
		
		//Check Axe Charge before using up zeal
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 4)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 A_TakeInventory("Zeal", 5)
		///////////////////////////////////////
		
		//Check Rage first to determine tic skip
		"####" A 0 A_JumpIfInventory("BladeIsCharged",1, 4)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPWR A 1								//Idle state to slowdown if no rage
		"####" A 0 A_Jump(256, 3)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPRR A 1 BRIGHT								//Idle state to slowdown if no rage (Axe Charge Sprites)
		////////////////////////////////////////
		
		//check Axe Charge to display proper Sprites
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3)
		VPWR B 1
		"####" A 0 A_Jump(256, 2)
		VPRR B 1 BRIGHT
		////////////////////////////////////////////
		
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
		"####" A 0 A_PlaySound("AXSWING")
		"####" A 0 A_Takeinventory("ReadyToQuickSlashBlade",1)
		"####" A 0 SetPlayerProperty(0,1,0)
		
		//Check if Charged too to make Boomerang
		////////////////////
		//AND AGAIN... For this pitch/angle/recoil/frozen stuff... I added these new jumps
		//to get rid of the miserable pitch/angle/recoil/frozen nonsense while "Charged"
		"####" C 1
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3) //First "Testing" Jump
		"####" A 0 SetPlayerProperty(0,1,0)
		"####" A 0 A_Recoil(-6)
		"####" A 0 A_FireCustomMissile("BladeSwing", -30, 0, 0, 15)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 //Boomerang Here
		//////////////////
		
		"####" D 2
		"####" A 0 A_FireCustomMissile("BladeSwing", -10, 0, 0, 9)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Second "Testing" Jump
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetAngle((1) + angle)
		"####" E 2
		"####" A 0 A_FireCustomMissile("BladeSwing", 10, 0, 0, 0)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Third "Testing" Jump
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetAngle((1) + angle)
		"####" F 2
		"####" A 0 A_FireCustomMissile("BladeSwing", 30, 0, 0, -6)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Fourth "Testing" Jump
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((1)+angle)
		"####" A 0 A_SetAngle((1) + angle)
		"####" A 0 SetPlayerProperty(0,0,0)
		
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickRight")
		SWRD OPQA 2 A_Refire("FastSlash2")
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickRight")
		//Take Away Charged Axe
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////
		Goto ReadyLoop
			
	FastSlash2:
		
		//check zeal first (if below now, take away Axe charge)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////////////////////////////////////
		
		//Check Axe Charge before using up zeal
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 4)
		"####" A 0 A_JumpIfInventory("Zeal", 5, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 A_TakeInventory("Zeal", 5)
		///////////////////////////////////////
		
		//Check Rage first to determine tic skip
		"####" A 0 A_JumpIfInventory("BladeIsCharged",1, 4)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPWL A 1								//Idle state to slowdown if no rage
		"####" A 0 A_Jump(256, 3)
		"####" A 0 A_JumpIfInventory("rage",50, 2) //if rage is more than 50 than strike start faster
		VPRL A 1 BRIGHT								//Idle state to slowdown if no rage (Axe Charge Sprites)
		////////////////////////////////////////
		
		//Check Axe Charge to display proper sprites
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3)
		VPWL B 1
		"####" A 0 A_Jump(256, 2)
		VPRL B 1 BRIGHT
		////////////////////////////////////////////
		
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
		"####" A 0 A_PlaySound("AXSWING")
		"####" A 0 A_Takeinventory("ReadyToQuickSlashBlade",1)
		
		//Check if Charged too to make Boomerang
		////////////////////
		//AND YET AGAIN... For this pitch/angle/recoil/frozen stuff... I added these new jumps
		//to get rid of the miserable pitch/angle/recoil/frozen nonsense while "Charged"
		"####" C 1
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 3) //First "Testing" Jump
		"####" A 0 SetPlayerProperty(0,1,0)
		"####" A 0 A_Recoil(-6)
		"####" A 0 A_FireCustomMissile("BladeSwing", 30, 0, 0, 15)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 2)
		"####" A 0 A_Jump(256, 2)
		"####" A 0 //Boomerang Here
		//////////////////
		
		"####" D 2
		"####" A 0 A_FireCustomMissile("BladeSwing", 10, 0, 0, 9)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Second "Testing" Jump
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetAngle((-1.5) + angle)
		"####" E 2
		"####" A 0 A_FireCustomMissile("BladeSwing", -10, 0, 0, 0)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Third "Testing" Jump
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetAngle((-1.5) + angle)
		"####" F 2
		"####" A 0 A_FireCustomMissile("BladeSwing", -30, 0, 0, -6)
		"####" A 0 A_JumpIfInventory("BladeIsCharged", 1, 5) //Fourth "Testing" Jump
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetPitch((0.5) + pitch)
		"####" A 0 A_SetAngle((-1)+angle)
		"####" A 0 A_SetAngle((-1.5) + angle)
		"####" A 0 SetPlayerProperty(0,0,0)
		
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickRight")
		SWRD OPQA  2 A_WeaponReady
		"####" A 0 A_JumpIfInventory("Kicking",1,"KickRight")
		//Take Away Charged Axe
		"####" A 0 A_TakeInventory("BladeIsCharged", 1)
		///////////////////////
		Goto ReadyLoop
	
	
	//To Avoid buggy shit - I made alt-fire here exist AND just does the same shit as the "fire" state
	AltFire:
	    "####" A 0
		"####" A 0 A_JumpIfInventory("ReadyToQuickSlashBlade", 1, "FastSlash")
		"####" A 0 A_JumpIfInventory("IsCrouching", 1, "FastSlash")
	    //"####" A 0 A_JumpIfInventory("SpecialAttackPunch", 1, "NormPunch")
		//"####" A 0 A_JumpIfInventory("SpecialAttackPunch", 1, "QuickFire")
	    "####" A 0 A_JumpIfInventory("SpecialAttackBlade", 1, "SpecialAttack")
		//VPBR BA 2 //placeholder stuff
		
		//Boomerang Slash Charge Sprites
		TNT1 A 0 A_JumpIfInventory("BladeIsCharged", 1, 5)
		VPBR BA 2 A_SetAngle((-2)+angle)
		"####" A 0 A_Jump(256, 3)
		VPBR BA 2 //A_SetAngle((-2)+angle)	//Razor Slash Charge Sprites (no "SetAngle", this will mess up aiming a bit!)
		////////////////////////////
	AltHold:
	    "####" A 0
	    SWRD B 1
		//TNT1 A 0 A_JumpIfInventory("Taunting",1,"AxeThrow") //HAHAHA! (nope :P)
		//TNT1 A 0 A_JumpIfInventory("FiredSecondary", 1, "AxeThrowReady") //Real HAHAHA!!!
		SWRD B 1 A_Refire
		Goto QuickFire
	
	Steady:
	TNT1 A 1
	TNT1 A 0 ACS_Execute(477, 0, 0, 0, 0)
	Goto ReadyLoop
	 
	DoKick:
    TNT1 A 0
		TNT1 A 0 A_Takeinventory("Zoomed",1)
        TNT1 A 0 A_ZoomFactor(1.0)
		TNT1 A 0 A_Takeinventory("ADSmode",1)
		NULL A 0 A_JumpIf (momZ > 0, "AirKick")
		NULL A 0 A_JumpIf (momZ < 0, "AirKick")
		TNT1 A 0 A_JumpIfInventory("IsCrouching", 1, "SlideAttack")
		RIFF A 0 A_FireCustomMissile("KickAttackDetectDowned", 0, 0, 0, 0)
        TNT1 A 0 A_jumpifinventory("PowerStrength",1,"BerserkerKick")
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
		TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 SetPlayerProperty(0,1,0)
		AXKI ABCD 1
		RIFF A 0 A_FireCustomMissile("KickAttack", 0, 0, 0, -7)
   		TNT1 A 0 A_Giveinventory("ReadyToQuickSlashBlade",1)
		K1CK H 5
		K1CK A 0 A_Takeinventory("Kicking",1)
		K1CK I 1
		K1CK GFE 1 A_WeaponReady
		AXKI DCBA 1 A_WeaponReady
		TNT1 A 0 SetPlayerProperty(0,0,0)
		TNT1 A 0 A_Takeinventory("ReadyToQuickSlashBlade",1)
		TNT1 A 0 A_JumpIfInventory("GoFatality", 1, "Steady")
		Goto ReadyLoop
    BerserkerKick:
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
		TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 SetPlayerProperty(0,1,0)
		AXKI ABCD 1
        RIFF A 0 A_FireCustomMissile("SuperKickAttack", 0, 0, 0, -7)
		TNT1 A 0 A_Giveinventory("ReadyToQuickSlashBlade",1)
        K1CK H 5
		K1CK A 0 A_Takeinventory("Kicking",1)
		K1CK I 1
		K1CK GFE 1 A_WeaponReady
		AXKI DCBA 1 A_WeaponReady
		TNT1 A 0 SetPlayerProperty(0,0,0)
		TNT1 A 0 A_Takeinventory("ReadyToQuickSlashBlade",1)
		TNT1 A 0 A_JumpIfInventory("GoFatality", 1, "Steady")
		Goto ReadyLoop
	
	KickRight:
		K1K2 ABC 1
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
        TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 A_Giveinventory("Punching",1)
		TNT1 A 0 A_SetPitch(-6 + pitch)
		K1K2 D 1
		PUN2 A 0 A_FireCustomMissile("KickAttack", 0,0,0,-7)
		TNT1 A 0 A_GiveInventory("SpecialAttackBlade", 1)
		K1K2 DD 1 
		K1K2 ECBA 1 A_WeaponReady
		TNT1 A 5 A_TakeInventory("Kicking",1)
		TNT1 A 0 A_TakeInventory("SpecialAttackBlade", 1)
		Goto ReadyLoop
		
		
	KickLeft:
		K1K1 ABC 1
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
        TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 A_Giveinventory("Punching",1)
		TNT1 A 0 A_SetPitch(-6 + pitch)
		K1K1 D 1
		PUN2 A 0 A_FireCustomMissile("KickAttack", 0,0,0,-7)
		TNT1 A 0 A_GiveInventory("ReadyToQuickSlashBlade", 1)
		K1K1 DD 1 
		K1K1 ECBA 1 A_WeaponReady
		TNT1 A 5 A_TakeInventory("Kicking",1)
		TNT1 A 0 A_TakeInventory("ReadyToQuickSlashBlade", 1)
		Goto ReadyLoop
	
	AirKick:
	    TNT1 A 0 A_jumpifinventory("PowerStrength",1,"SuperAirKick")
        "####" A 0 A_PlaySound("Paladin/MediumExert", 2)
		TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 A_Recoil (-6)
		K1CK JKLMN 1
        RIFF A 0 A_FireCustomMissile("AirKickAttack", 0, 0, 0, -31)
		TNT1 A 0 A_GiveInventory("SpecialAttackAxe", 1)
        K1CK O 3
		K1CK A 0 A_Takeinventory("Kicking",1)
		K1CK PQRST 2 A_WeaponReady
		TNT1 A 0 A_TakeInventory("SpecialAttackAxe", 1)
		TNT1 A 0 A_JumpIfInventory("GoFatality", 1, "Steady")
		Goto ReadyLoop
		
	SuperAirKick:
        "####" A 0 A_PlaySound("Paladin/LongExert", 2)
		TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 A_Recoil (-6)
		K1CK JKLMN 1
        RIFF A 0 A_FireCustomMissile("SuperAirKickAttack", 0, 0, 0, -31)
		TNT1 A 0 A_GiveInventory("SpecialAttackAxe", 1)
        K1CK O 3 
		K1CK A 0 A_Takeinventory("Kicking",1)
		K1CK PQRST 2 A_WeaponReady
		TNT1 A 0 A_TakeInventory("SpecialAttackAxe", 1)
		TNT1 A 0 A_JumpIfInventory("GoFatality", 1, "Steady")
		Goto ReadyLoop
		
	//Taunt:
/*
	Reload: 
		TNT1 A 0 A_TakeInventory("Reloading",1)
		TNT1 A 0 A_JumpIfInventory("ShieldUp", 1, "PowerReflectOn")
		TNT1 A 0 A_TakeInventory("Reloading",1)
		Goto ParryUp
		//Goto GotoAxeThrow
*/
	
	Taunt: //here at the moment (why not? :3)
        TNT1 A 0 A_Takeinventory("Taunting",1)
		TNT1 A 0 A_JumpIfInventory("Zeal", 5, "ChargingBlade")
		TNT1 A 0 A_Print("Not enough \caZeal")
		Goto ReadyLoop
		
	Salute:
		TNT1 A 0
		goto ReadyLoop
	    TNT1 A 0 SetPlayerProperty(0,1,0)
		TNT1 A 0 A_ALertMonsters
		SALU ABCDEDCDEDCDEDCBA 4
		TNT1 A 0 A_TakeInventory("Salute1",1)
		TNT1 A 0 A_TakeInventory("Salute2",1)
		TNT1 A 0 SetPlayerProperty(0,0,0)
		Goto ReadyLoop
	
	//For Blade melee Charging when taunting
	ChargingBladeReady:
		"####" A 0 A_JumpIfInventory("Zeal", 5, "ChargingBlade")
		"####" A 0 A_Print("Not enough \caZeal")
		Goto ReadyLoop
	ChargingBlade:
		"####" A 0 A_PlaySound("Paladin/SpellCast", 2)
		//"####" A 0 A_Takeinventory("Taunting",1)
		"####" A 0 A_GiveInventory("BladeIsCharged", 1)
		SWRD WXYWXY 1 BRIGHT
		"####" A 0 A_PlaySound("AXECHARG") //maybe change this later for Vorpal Blade
		"####" WXYWXY 1 BRIGHT
		Goto ChargeReady
	
	ChargeReady:
		TNT1 A 0
		SWRD WXY 3 BRIGHT A_WeaponReady //A_JumpIfInventory("FiredPrimary", 1, "QuietusPowerRazor")
		TNT1 A 0 
		loop
	/////////////////////////////////////
	}
}

Actor SpecialAttackBlade : Inventory
{
inventory.maxamount 1
}

Actor ReadyToQuickSlashBlade : Inventory
{
inventory.maxamount 1
}

//For Charged Vorpal Blade Purposes
Actor BladeIsCharged : Inventory
{
inventory.maxamount 1
}
//////////////////////////

//BladeSwing Actor for Vorpal Blade Attacks
ACTOR BladeSwing
{
	Radius 6
	Height 6
	DamageType Cut
	Projectile 
	+FORCEXYBILLBOARD
//	+NOEXTREMEDEATH
	+BLOODSPLATTER
	+FORCEPAIN
	Damage 12 //was 9
	Speed 40
	Obituary "%o was bladed by %k"
//	SeeSound "none"
//	DeathSound "none"
	Decal "none"
	States
	{
	Spawn:
		TNT1 A 1
		TNT1 A 1 BRIGHT
		Stop
	XDeath:
		TNT1 A 0 A_PlaySound("SLMETA", 1)
		TNT1 A 0 A_GiveToTarget("Rage",3) //was 2
		TNT1 A 1
		Stop
	Death:
		TNT1 A 0 A_SpawnItemEx("SwordPuff",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		TNT1 A 1 Radius_Quake(2, 3, 0, 4, 0)
		TNT1 A 1
		Stop
	Crash:
		TNT1 A 1 A_PlaySound("SLMETA", 1)
		TNT1 A 0 A_SpawnItemEx("SwordPuff",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		TNT1 A 1
		Stop
		}
}

/////////////////////////////